export const _ValidatePhone = (rule, value, callback) => {
    if (!value) {
      return callback(new Error("不能为空"));
    } else if (!/^1[3456789]\d{9}$/.test(value)) {
      callback("手机号格式不正确");
    } else {
      callback();
    }
  };
  export const _ValidatenullPhone = (rule, value, callback) => {
    if (!value) {
      return callback(new Error("不能为空"));
    }else if ((!/^1[3456789]\d{9}$/.test(value))&&(!/^0\d{2,3}-?\d{7,8}$/.test(value))) {
      callback("格式不正确");
    } else {
      callback();
    }
  };